/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.ieslaferreria.creditsintesis.inputcontrollers;

import edu.ieslaferreria.creditsintesis.logicgame.ActionStates;
import edu.ieslaferreria.creditsintesis.logicgame.ObjectWithStates;
import java.util.Iterator;

/**
 *
 * @author Ruben
 */
// esta clase es temporal para añadir el objeto fijo siempre en la cola de CambioEstados.

public class FixedObjectController {

    ActionStates stateObjects;

    public FixedObjectController(){
    }

    public void addToValidateStateOnRegionObjects(ObjectWithStates objW){
        if(objW==null){
        }else{
           for(Iterator<ObjectWithStates> objectsOnRegion=this.stateObjects.getObjectsNearMe(objW); objectsOnRegion.hasNext();){
               this.stateObjects.getObjectsToValidateState().add(objectsOnRegion.next());
           }
        }
    }
}
